package com.restfinder.rate.model;

import com.restfinder.restaurant.model.Restaurant;
import com.restfinder.user.model.User;

import lombok.Getter;
import lombok.Setter;

public class Rate {

	@Getter @Setter
	private RatePK pk = new RatePK();
	@Getter @Setter
	private double value;
	
	public User getUser(){
		return this.pk.getUser();
	}
	
	public void setUser(User user){
		this.pk.setUser(user);
	}
	
	public Restaurant getRestaurant(){
		return this.pk.getRestaurant();
	}
	
	public void setRestaurant(Restaurant restaurant){
		this.pk.setRestaurant(restaurant);
	}

}
